#include <iostream>

using namespace std;

int main()
{
    int x,i;
    cin>>x;
    for (i==0,i<=mblen(int(x)),i++){
        if ((int(x[i])+1==int(x[i+1])) or (int(x[i])+1==int(x[i+2]) or (int(x[i])+2==int(x[i+1]) or (int(x[i])+2==int(x[i+2]){
            cout<<"True";
            break;
        }
        else{
            cout<<"False";
            break;
    }
    }
}
